﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Wjs.Controllers
{
    public class GridLoaderController : Controller
    {
        //
        // GET: /GridLoader/

        public ActionResult Index(int id)
        {
            return Json(
                new[]
                {
                    new 
                    {
                        fruit = 5,
                        name = "Sarah G",
                        date = "5/25/2002"
                    },
                    new 
                    {
                        fruit = 6,
                        name = "Yana B",
                        date = "5/25/1988"
                    },
                    new 
                    {
                        fruit = 7,
                        name = "Flora G",
                        date = "5/24/1938"
                    }
                },
            JsonRequestBehavior.AllowGet);
        }

    }
}
